/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* --------------------
   HEADER
--------------------- */
.header {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header-container {
  display: flex;
  flex: 1;
  height: 100vh;
}

/* Left Column (Text) */
.header-content {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideUp 1.2s ease-out forwards;
  opacity: 0;
}

/* Hero Titles */
.hero-title {
  font-family: "Libre Bodoni", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: italic;
  font-size: 75px;
  margin: 0;
  line-height: 1.2;
  color: #fff;
}

.hero-subtitle {
  font-family: "Libre Bodoni", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: italic;
  font-size: 60px;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.2;
  color: #ccc;
}

/* Right Column (Nav Links) */
.header-image {
  flex: 1;
  background-image: url("../Images/picture1.JPG");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
}

/* Navigation Links - TODO */

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.nav-links a {
  color: #b6b6b6;
  font-family: "Libre Bodoni", serif;
  text-decoration: none;
  font-size: 1rem;
  position: relative; /* required for underline animation */
  transition: color 0.4s ease;
}

/* visited state */
.nav-links a:visited {
  color: #b6b6b6;
}

.underline-hover a::after {
  content: "";
  position: absolute;
  left: 50%; /* start at the center */
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: grey;
  transition: all 0.3s ease;
  transform: translateX(-50%); /* keeps it centered */
}

.underline-hover a:hover::after {
  width: 100%; /* expands evenly from center */
}

/* --------------------
   ABOUT SECTION
--------------------- */
.about {
  padding: 4rem 2rem;
  background-color: #f7f3f3;
  color: #000;
}

.about-container {
  display: flex;
  flex-direction: column; /* keeps everything stacked */
  align-items: center;
  gap: 3rem;
  /* max-width: 1000px; */
  margin: 0 auto;
}

/* Main text block (aligned to right as in your sketch) */

/* TODO */
.about-text {
  font-family: sans-serif;
  align-self: flex-end;
  max-width: 680px;
  line-height: 1.6;
  font-size: 1.4rem;
  text-align: right;
  padding: 6rem 20px 3rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Big centered video background */
.about-extra {
  position: relative;
  width: 1500px;
  height: 430px;
  /* background-color: #f0eded; */
  background-image: url("../Images/3d-rendering-abstract-black-white-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-extra p {
  color: rgb(164, 156, 156);
}

/* MY WORK SECTION */
.my-work-section {
  padding: 4rem 1.5rem;
  background: #f7f3f3;
  transition: background-color 1.5s ease;
}

/* When active, background changes */
.my-work-section.active {
  background: #131313; /* pick any highlight color */
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: "Libre Bodoni", serif;
  text-align: left;
  color: #f2f2f2;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #f2f2f2;
}

/* Project Layout */

.project-title {
  font-family: "Libre Bodoni", serif;
  text-align: left;
  color: #f2f2f2;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .project {
    grid-template-columns: 1fr;
  }
}

/* Project Media */
.project-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Project Details */
.project-details h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-description {
  color: #d9d8d8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Visit Link */
.project-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #dfdfdf;
  text-decoration: none;
}

.project-link:hover {
  color: #dfdfdf;
}

/* Project Tags */
.project-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags li {
  background: #eee;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #333;
}

/* --- PROJECT ANIMATIONS --- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;

  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-out;
}

.project.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section*/
.footer {
  background: #1e1e1e;
  color: #f1f1f1;
  padding: 3rem 1rem 1.5rem;
  font-family: "Inter", sans-serif;
}

/* Center container */
.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-center {
  text-align: center;
}

.footer-text {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Social Links */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.social-links a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #f1f1f1;
  color: #1e1e1e;
  text-align: center;
  line-height: 35px;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a:hover {
  background: #6c63ff;
  color: #fff;
  transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* --------------------
   ANIMATION -- Header text
--------------------- */
@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ANIMATION -- About-Me section */
.about-extra.animate {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------
   RESPONSIVE - Header section
--------------------- */

@media (max-width: 1012px) {
  .header-container {
    flex-direction: column;
  }

  .header-image {
    order: 1;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 22rem;
    /* background-color: #f5f5f5; */
  }

  .header-content {
    order: 2;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000;
  }

  .nav-links {
    /* display: flex; */
    flex-direction: row;
    gap: 1rem;
  }
}

@media (max-width: 1011px) {
  .hero-title {
    font-size: 70px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 55px;
    text-align: center;
  }
}

@media (max-width: 783px) {
  .hero-title {
    font-size: 50px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 40px;
    text-align: center;
  }

  .header-content {
    padding: 2rem;
  }
}

/* --------------------
   RESPONSIVE - About me section
--------------------- */

@media (max-width: 1547px) {
  .about {
    padding: 2rem 1rem;
  }

  .about-text {
    font-size: 1.3rem;
    text-align: left;
  }

  .about-extra {
    font-size: 3.5rem;
    line-height: 2.8;
    padding: 1.5rem;
    width: 90rem;
    height: auto;
  }
}
